﻿namespace Looptribe.Moodlin8.Model
{
    public static class ModelExtensions
    {
        public static User ToUser(this CourseUser source)
        {
            var user = new User
                           {
                               Id = source.Id,
                               Fullname = source.Fullname,
                               ProfileImageUrl = source.ProfileImageUrl,
                               ProfileImageUrlSmall = source.ProfileImageUrlSmall
                           };
            return user;
        }
    }
}
